﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Product.Domain.Entity
{
    public class Category : BaseAggregationRoot
    {
        /// <summary>
        /// 父级id
        /// </summary>
        public Guid ParentId { get; set; }

        /// <summary>
        /// 分类名称
        /// </summary>
        public string CategoryName { get; set; }

        /// <summary>
        /// 分类层级
        /// </summary>
        public int CategoryLevel { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public int Sort { get; set; }

        /// <summary>
        /// 子级分类
        /// </summary>
        public List<Category> ChildCategoryList { get; set; }

        /// <summary>
        /// 父级分类
        /// </summary>
        public List<Category> ParentCategoryList { get; set; }
    }
}
